package com.oraking.android.hybridapp.dev.korealaw.util;

import java.io.StringReader;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.InputSource;

import com.oraking.android.hybridapp.dev.korealaw.xmlhandler.CmmXmlHandler;

public class CmmXmlUtil {
	
	public static void parseXml(String str, CmmXmlHandler handler){
		SAXParserFactory spf = SAXParserFactory.newInstance();
		SAXParser sp;		
		try{
			sp = spf.newSAXParser();
			InputSource is = new InputSource(new StringReader(str));
			sp.parse(is, handler);
		}catch(Exception e){
		}
	}
}
